package com.local.seckill.pojo;

import org.springframework.web.bind.annotation.RequestParam;

public class SeckillListRequestParam {
    private Integer page;
    private Integer limit;
    private String sort;
    private String order;
    private Integer goodsId;
    private Integer seckillStatus;
    private String startTime;
    private String endTime;
    private Integer isDeleted;

    public SeckillListRequestParam(){}

    public SeckillListRequestParam(Integer page, Integer limit, String sort, String order, Integer goodsId, Integer seckillStatus, String startTime, String endTime, Integer isDeleted) {
        this.page = page;
        this.limit = limit;
        this.sort = sort;
        this.order = order;
        this.goodsId = goodsId;
        this.seckillStatus = seckillStatus;
        this.startTime = startTime;
        this.endTime = endTime;
        this.isDeleted = isDeleted;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public String getSort() {
        return sort;
    }

    public void setSort(String sort) {
        this.sort = sort;
    }

    public String getOrder() {
        return order;
    }

    public void setOrder(String order) {
        this.order = order;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getSeckillStatus() {
        return seckillStatus;
    }

    public void setSeckillStatus(Integer seckillStatus) {
        this.seckillStatus = seckillStatus;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        return "SeckillListRequestParam{" +
                "page=" + page +
                ", limit=" + limit +
                ", sort='" + sort + '\'' +
                ", order='" + order + '\'' +
                ", goodsId=" + goodsId +
                ", seckillStatus=" + seckillStatus +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                ", isDeleted=" + isDeleted +
                '}';
    }
}
